#!/bin/bash
echo "[credential]" >> .git/config
echo " helper = store" >> .git/config
~/.bashrc
ps -ef | grep nginx
ps -aux | grep httpd
lsof -i :8070
netstat -tunlp|grep 端口号
ssh-keygen -t rsa -C "ben@xxx.com"
cat ~/.ssh/id_rsa.pub
ssh -i [PATH_TO_PRIVATE_KEY] [USERNAME]@[EXTERNAL_IP_ADDRESS]
ssh -i ~/.ssh/id_rsa ubuntu@134.175.33.75
cp -rf /WorkSpace/fintech-oss-front/build/* /WorkSpace/fintech-oss-front/deploy/front-build/
Kill -9 pid
zip -rqo test.zip .
export ALL_PROXY=socks5://127.0.0.1:7891
service xxx start|stop|restart
systemctl enable xxx
top
df -h
df -k
apt-get && yum
cat /proc/version
uname -a
cat /proc/cpuinfo
lscpu
cat /etc/os-release
lsb_release -a
cat /etc/lsb-release
cat /etc/group
cat /etc/passwd
cut -d: -f1 /etc/passwd
lsblk
fdisk -l
docker system df
docker system prune
docker system prune -a
docker volume rm $(docker volume ls -q)
du -h --max-depth=1
scp -P 端口号 D:/Desktop/xxx.txt root@0.0.0.0:/opt/
find /path/to/directory ! -name '*.whl' -delete
sudo update-alternatives --install /usr/bin/command command \
/path/to/new/command 100
sudo update-alternatives --config command
sudo update-alternatives --display command
sudo update-alternatives --remove command /path/to/command
grep 'temporary password' /var/log/mysqld.log
passwd
journalctl -u 你的服务名.service
ifconfig: 显示网络接口信息(较新系统使用 ip addr 替代)。
netstat -tuln: 显示网络端口监听情况。
telnet 远程主机IP 3306
nc -zv 远程主机IP 3306
chmod u+rwx file.txt
chown new_owner file.txt
chown :new_group file.txt